
class Answer
  include MongoMapper::Document
  key :question_id, String
  key :values, Array

  #attr_accessor :question

  key :question_id, ObjectId

  belongs_to :question

  def correct?
    values == question.correct_choices
  end

end
